﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CourseUtils;

namespace reverse_a_number
{
    class Program
    {

        static void ReverseNumber(int a)
        {
            Console.Write(a%10);
            while ((a /= 10) != 0)
                Console.Write(a % 10);
        }

        static void Main(string[] args)
        {
            int a = 0;
            a = IOHelpers.ReadIntFromConsole("enter a number");
            ReverseNumber(a);           

                Console.ReadKey();
        }
    }
}
